package com.my.bbs.dao;

import com.my.bbs.entity.MyPostComment;
import com.my.bbs.util.PageQueryUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 86187
 */
public interface MyPostCommentMapper {
    int deleteByPrimaryKey(Long commentId);

    int insert(MyPostComment record);

    int insertSelective(MyPostComment record);

    MyPostComment selectByPrimaryKey(Long commentId);

    int updateByPrimaryKeySelective(MyPostComment record);

    int updateByPrimaryKey(MyPostComment record);

    int getTotalComments(PageQueryUtil pageUtil);

    List<MyPostComment> findCommentList(PageQueryUtil pageUtil);

    List<MyPostComment> getRecentCommentListByUserId(@Param("userId") Long userId);
}